package com.bian.springboot04restfulcrud.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author bianpengfei
 * @create 2019-01-26 17:33
 **/

@Controller
public class HelloController {

    @RequestMapping("/hello")
    public String hello() {
        return "success";
    }

    @RequestMapping("/requestSuccess")
    public String success() {
        // 它会转到 classpath:/templates/success.html
        return "success";
    }

}
